<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/20
  Time: 8:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>文件上传表单</h1>
<form action="${pageContext.request.contextPath}/fileUpLoadServlet" method="post" enctype="multipart/form-data">
    上传者：<input type="text" name="username" value=""><br>
    选择文件：<input type="file" name="myfile" value=""><br>
    <input type="submit" value="文件提交">
</form>
<hr>
<h1>文件下载测试</h1>
home_loop_720p.mp4<a href="${pageContext.request.contextPath}/downloadServlet?filename=home_loop_720p.mp4">点击下载</a>
<br>
product_测试.sql<a href="${pageContext.request.contextPath}/downloadServlet?filename=product_测试.sql">点击下载</a>
</body>
</html>
